package com.bwie.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class LoginVo implements Serializable {
   @NotBlank(message = "用户名不能为空")
   @Size(min = 8,message = "用户名长度不能小于8位")
   private String userName;
   @NotBlank(message = "密码不能为空")
   @Pattern(regexp = "^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9]{6,}$",message = "密码要求至少6位且包含大小写字母")
   private String userPass;
}
